<script type="text/javascript" >
    stFacebookToolbox.load_tooltip();
    stFacebookToolbox.on_submitform('#userForm', function(){
        jQuery.prettyPhoto.close();
        stFacebookToolbox.loadPage('view_form_entries&form_id=<?php echo $id;?>',null,null,function(){
            
        });
        
        
    });
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<div class="w100p bgl" id="stcontainer">
    <div class="w100p bgr p5b" id="result">
        <form class="stform" id="userForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=entries_display_option') ?>" method="post" >
           <input type="hidden" value="<?php echo $id;?>" name="form_id" />
            <table cellspacing="0" class="widefat" align="center" style="margin-left:-8px;margin-top: -30px;">
                <thead>
                    <tr>
                        	<th style="" class="manage-column column-uid" id="date" scope="col">Check/Uncheck</th>
				<th style="" class="manage-column column-firstname" id="likes" scope="col">Field Name</th>
                    </tr>
                </thead>
                <tbody>
                <?php $stt = 1;foreach($result as $row):?>
                <tr class="bg_gray<?php echo (($stt % 2) == 0)?'1':'2'?>" id="<?php echo $row->element_title;?>">
                <td>
                <input title="List of field" value="1" class="" name="data[<?php echo $row->element_id;?>]" id="" type="checkbox" tabindex="7" <?php if($row->display_entries == 1){echo 'checked';} ?>  />
				</td>
				<td><?php echo $row->element_title;?></td>
				
				</tr>
				<?php $stt++; endforeach;?>
				</tbody>
            </table>
           <ul style="margin-left: -218px;margin-top: 7px;">
               <li>
                        <input type="submit" value="Submit" style="margin-left: 210px;"/>
                    </li>
           </ul>
        </form>            
    </div>
</div>
